# -*- coding: utf-8 -*-
"""
Version: 0.1
Author: CarpeDiem
Date: 2022/3/30
Description: 大乐透号码生成器
"""
# 乐透生成器 模块
# 导入随机模块
import random


# 生成一注乐透号码的方法
def Lotto():
    # 生成前区5个蓝球,从小打到排序
    blue = random.sample(range(1, 36), 5)
    blue.sort()
    # 生成后区2个红球，,从小打到排序
    red = random.sample(range(1, 13), 2)
    red.sort()
    lotto = blue + red

    # 定义一个自动补齐两位数字的模板
    template = '{:0>2d} {:0>2d} {:0>2d} {:0>2d} {:0>2d}      {:0>2d} {:0>2d}'
    lotto1 = template.format(lotto[0], lotto[1], lotto[2], lotto[3], lotto[4],
                             lotto[5], lotto[6])
    return lotto1


print("*****生成大乐透号码*****")
index = int(input("请输入需要几注："))
for i in range(index):
    if i < index:
        print(Lotto())
    else:
        break